package com.huakang.entity;

import java.io.Serializable;

/**
 * medsci
 * @author 
 */
public class Medsci implements Serializable {
    /**
     * 就诊信息表的编号
     */
    private Integer mscid;

    /**
     * 病人的编号
     */
    private Integer pid;

    /**
     * 就诊的编号
     */
    private Integer sid;

    /**
     * 科室编号
     */
    private Integer kid;

    private static final long serialVersionUID = 1L;

    public Integer getMscid() {
        return mscid;
    }

    public void setMscid(Integer mscid) {
        this.mscid = mscid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getKid() {
        return kid;
    }

    public void setKid(Integer kid) {
        this.kid = kid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Medsci other = (Medsci) that;
        return (this.getMscid() == null ? other.getMscid() == null : this.getMscid().equals(other.getMscid()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getKid() == null ? other.getKid() == null : this.getKid().equals(other.getKid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMscid() == null) ? 0 : getMscid().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getKid() == null) ? 0 : getKid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mscid=").append(mscid);
        sb.append(", pid=").append(pid);
        sb.append(", sid=").append(sid);
        sb.append(", kid=").append(kid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}